package com.hanwei.uap.common.data.crccalc;

public class CrcHelper {

    static long ReverseBits(long ul, int valueLength) {
        long newValue = 0;

        for (int i = valueLength - 1; i >= 0; i--) {
            newValue |= (ul & 1) << i;
            ul >>= 1;
        }

        return newValue;
    }
}
